%h1.page_title
  = "#{link_to "Home", "/"} > View Post"
#posts
  = render :partial => "post", :locals => {:post => @post}
- if APP_SETTINGS[:comment_system] == "internal"
  %a{ :name => "comments", :class => "named_anchor"}Comments
  #comments
    - counter = 0
    - for comment in @post.comments
      - continue if comment.is_spam
      - counter += 1
      = render :partial => "comments/comment", :locals => {:comment => comment, :counter => counter}
  - if (Time.now > (@post.published_at + @post.comments_disabled_after.days )) 
    Sorry, new comments are now disabled for this post.

  - else
    = render :partial => "comments/create_comment", :locals => {:post => @post} 
- elsif APP_SETTINGS[:comment_system] == "disqus"
  = render :partial => "modules/disqus"
- elsif APP_SETTINGS[:comment_system] == "intense_debate"
  = render :partial => "modules/intense_debate"
= render :partial => "trackbacks", :locals => {:post => @post}